package com.spic.business.registrationform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spic.business.registrationform.mapper.ArchiveStaffPostholdersRecordsMapper;
import com.spic.business.registrationform.domain.ArchiveStaffPostholdersRecords;
import com.spic.business.registrationform.service.IArchiveStaffPostholdersRecordsService;

/**
 * 三项岗位人员安全培训、考核记录Service业务层处理
 * 
 * @author spic
 * @date 2022-07-20
 */
@Service
public class ArchiveStaffPostholdersRecordsServiceImpl implements IArchiveStaffPostholdersRecordsService 
{
    @Autowired
    private ArchiveStaffPostholdersRecordsMapper archiveStaffPostholdersRecordsMapper;

    /**
     * 查询三项岗位人员安全培训、考核记录
     * 
     * @param studyId 三项岗位人员安全培训、考核记录主键
     * @return 三项岗位人员安全培训、考核记录
     */
    @Override
    public ArchiveStaffPostholdersRecords selectArchiveStaffPostholdersRecordsByStudyId(Long studyId)
    {
        return archiveStaffPostholdersRecordsMapper.selectArchiveStaffPostholdersRecordsByStudyId(studyId);
    }

    /**
     * 查询三项岗位人员安全培训、考核记录列表
     * 
     * @param archiveStaffPostholdersRecords 三项岗位人员安全培训、考核记录
     * @return 三项岗位人员安全培训、考核记录
     */
    @Override
    public List<ArchiveStaffPostholdersRecords> selectArchiveStaffPostholdersRecordsList(ArchiveStaffPostholdersRecords archiveStaffPostholdersRecords)
    {
        return archiveStaffPostholdersRecordsMapper.selectArchiveStaffPostholdersRecordsList(archiveStaffPostholdersRecords);
    }

    /**
     * 新增三项岗位人员安全培训、考核记录
     * 
     * @param archiveStaffPostholdersRecords 三项岗位人员安全培训、考核记录
     * @return 结果
     */
    @Override
    public int insertArchiveStaffPostholdersRecords(ArchiveStaffPostholdersRecords archiveStaffPostholdersRecords)
    {
        return archiveStaffPostholdersRecordsMapper.insertArchiveStaffPostholdersRecords(archiveStaffPostholdersRecords);
    }

    /**
     * 修改三项岗位人员安全培训、考核记录
     * 
     * @param archiveStaffPostholdersRecords 三项岗位人员安全培训、考核记录
     * @return 结果
     */
    @Override
    public int updateArchiveStaffPostholdersRecords(ArchiveStaffPostholdersRecords archiveStaffPostholdersRecords)
    {
        return archiveStaffPostholdersRecordsMapper.updateArchiveStaffPostholdersRecords(archiveStaffPostholdersRecords);
    }

    /**
     * 批量删除三项岗位人员安全培训、考核记录
     * 
     * @param studyIds 需要删除的三项岗位人员安全培训、考核记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffPostholdersRecordsByStudyIds(Long[] studyIds)
    {
        return archiveStaffPostholdersRecordsMapper.deleteArchiveStaffPostholdersRecordsByStudyIds(studyIds);
    }

    /**
     * 删除三项岗位人员安全培训、考核记录信息
     * 
     * @param studyId 三项岗位人员安全培训、考核记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffPostholdersRecordsByStudyId(Long studyId)
    {
        return archiveStaffPostholdersRecordsMapper.deleteArchiveStaffPostholdersRecordsByStudyId(studyId);
    }

    @Override
    public int deleteArchiveStaffPostholdersRecordsByStaffArchiveIds(String[] staffArchiveIds) {
        return archiveStaffPostholdersRecordsMapper.deleteArchiveStaffPostholdersRecordsByStaffArchiveIds(staffArchiveIds);
    }
}
